//
//  UIImage+WBImage.h
//  PhotoScroller
//
//  Created by Open on 4/7/15.
//  Copyright (c) 2015 Apple. All rights reserved.
// from http://www.platinumball.net/blog/2010/01/31/iphone-uiimage-rotation-and-scaling/

#import <UIKit/UIKit.h>

@interface UIImage (WBImage)
// rotate UIImage to any angle
-(UIImage*)rotate:(UIImageOrientation)orient;

// rotate and scale image from iphone camera
-(UIImage*)rotateAndScaleFromCameraWithMaxSize:(CGFloat)maxSize;

// scale this image to a given maximum width and height
-(UIImage*)scaleWithMaxSize:(CGFloat)maxSize;
-(UIImage*)scaleWithMaxSize:(CGFloat)maxSize
                    quality:(CGInterpolationQuality)quality;

@end
